import { BaseService, Service, Permission } from '@/cool';

@Service('crm/relation')
export default class extends BaseService {
	@Permission('setLabels')
	async setLabels(params) {
		return this.request({
			url: '/setLabels',
			method: 'POST',
			data: {
				...params
			}
		});
	}
	@Permission('labelList')
	async labelList(params) {
		return this.request({
			url: '/labelList',
			params: {
				...params
			}
		});
	}
	@Permission('setStaffId')
	async setStaffId(params) {
		return this.request({
			url: '/setStaffId',
			method: 'POST',
			data: {
				...params
			}
		});
	}
}
